
// 获取屏幕尺寸
let systemInfo;
try {
  systemInfo = wx.getSystemInfoSync();
} catch (e) {
  console.error('Failed to get system info:', e);
  // 提供默认值
  systemInfo = {
    windowWidth: 375,
    windowHeight: 667
  };
}

export const SCREEN_WIDTH = systemInfo.windowWidth;
export const SCREEN_HEIGHT = systemInfo.windowHeight;

console.log('Screen dimensions:', SCREEN_WIDTH, 'x', SCREEN_HEIGHT);